export default class share2 {
    palette(src,jf,productName,content,codeimg) {
        return ({
            width: '750rpx',
            height: '1150rpx',
            background: 'https://jzj.freei.cc/Uploads/ce/shareBg.png',
            views: [
                {
                    type: 'text',
                    text: productName,
                    css: [{
                        top: `${titleHeight + 60}rpx`,
                        left: `${margin}rpx`,
                    },common]
                },
                {
                    type: 'text',
                    text: jf + '积分',
                    css: [{
                        fontSize: '48rpx',
                        left: `${margin}rpx`,
                        top: `${titleHeight + 128}rpx`,
                        fontWeight: 'bold',
                        color:'#fe3d3d'
                    }]
                },
                {
                    type: 'image',
                    url: '/resources/theme/ok.png',
                    css: {
                      width: '26rpx',
                      height: `26rpx`,
                      top: `${titleHeight + 150}rpx`,
                      left: `${margin + 260}rpx`,
                    },
                },
                {
                    type: 'text',
                    text: '商家发货&售后',
                    css: [{
                        left: `${margin + 300}rpx`,
                        top: `${titleHeight + 150}rpx`,
                    },common2]
                },
                {
                    type: 'image',
                    url: src,
                    css: {
                      width: '750rpx',
                      height: `530rpx`,
                      top: `${titleHeight + 215}rpx`,
                    },
                },
                {
                    type: 'image',
                    url: codeimg,
                    css: {
                      width: '280rpx',
                      height: '280rpx',
                      bottom: '25rpx',
                      left: `${margin + 55}rpx`
                    },
                },
                {
                    type: 'text',
                    text: '健之家·健康商城',
                    css: [{
                        bottom: '190rpx',
                        right: `${margin + 60}rpx`
                    },common]
                },
                {
                    type: 'text',
                    text: '识别图中二维码兑换商品',
                    css: [{
                        bottom: '135rpx',
                        right: `${margin + 20}rpx`
                    },common2]
                }
            ],
        });
    }
}

const titleHeight = 86
const margin = 30;
const centerMargin = 375;
const common = {
    fontSize: '30rpx',
    fontWeight: 'bold',
    color:'#000',
};
const common2 = {
    fontSize: '24rpx',
    color:'#a3a3a3',
};